<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
list($basicname)=$arguments;
// 如果是乐高场景体，请使用三级菜单，否则用二级菜单，不按要求设置，菜单可能无法访问！；
$plugins=$this->plugins();
foreach($plugins as $ki=>&$item){
	$item['child']=$item['list'];
	unset($item['list']);
	foreach($item['child'] as $k=>&$p){
		if(!$p['is_install']){
			unset($item['child'][$k]);
		}else{
			if($p['actionurl']){
				$p['url']=$p['actionurl'];
			}else{
				$p['url']=$p['name'].'/basic.module_home/';
			}
		}
	}
}
$menus=array(
		array('title'=>'运营中心','fa'=>'icon-licai','url'=>'jy_kuaidisys/index/','child'=>array(
			array('title'=>'平台概况','child'=>array(
				array('url'=>'jy_kuaidisys/index/','title'=>'平台概况'),
			)),
			array('title'=>'入口管理','child'=>array(
				array('url'=>'jy_kuaidisys/basic.module_home/cover/ac=index&type=3','title'=>'首页入口'),
			)),
		)),
		array('title'=>'寄件管理','fa'=>'icon-gengduotupian','url'=>'jy_kuaidisys/jilog/','child'=>array(	
			array('title'=>'寄件管理','child'=>array(
				array('url'=>'jy_kuaidisys/jilog/','title'=>'寄件记录'),
				array('url'=>'jy_kuaidisys/jilog_refund/','title'=>'退款记录'),
				array('url'=>'jy_kuaidisys/chalog/','title'=>'查询记录'),
				//array('url'=>'jy_kuaidisys/address/','title'=>'地址薄'),
				array('url'=>'jy_kuaidisys/member/','title'=>'会员管理'),
			)),
		)),
		array('title'=>'分销管理','fa'=>'icon-paihao0','url'=>'jy_kuaidisys/agent/','child'=>array(	
			array('title'=>'分销管理','child'=>array(
				array('url'=>'jy_kuaidisys/agent/','title'=>'分销员'),
				array('url'=>'jy_kuaidisys/level/','title'=>'分销员等级'),
				array('url'=>'jy_kuaidisys/commission/','title'=>'分润管理'),
				array('url'=>'jy_kuaidisys/balance/','title'=>'结算管理'),
				array('url'=>'jy_kuaidisys/page_setting/','title'=>'样式设置'),
				array('url'=>'jy_kuaidisys/apply_setting/','title'=>'分销员申请页'),
			)),
		)),
		array('title'=>'投诉建议','fa'=>'icon-form','url'=>'jy_kuaidisys/feedback/','child'=>array(	
			array('title'=>'投诉建议','child'=>array(
				array('url'=>'jy_kuaidisys/feedback/','title'=>'投诉建议'),
			)),
		)),
		array('title'=>'快递公司','fa'=>'icon-jiangjiatongzhi','url'=>'jy_kuaidisys/kdlist/','child'=>array(	
			array('title'=>'公司费用','child'=>array(
				array('url'=>'jy_kuaidisys/kdlist/','title'=>'公司费用'),
			)),
		)),
		array('title'=>'应用','isplugin'=>1,'fa'=>'icon-box','url'=>'jy_kuaidisys/plugins/','child'=>$plugins),
		array('title'=>'基本设置','fa'=>'icon-shezhi','url'=>'jy_kuaidisys/setting/','child'=>array(	
			array('title'=>'基本设置','child'=>array(
				array('url'=>'jy_kuaidisys/setting/','title'=>'基本设置'),
				array('url'=>'jy_kuaidisys/refund/','title'=>'退款设置'),
				array('url'=>'jy_aiaddress/index/','title'=>'地址解析API设置'),
				array('url'=>'jy_aiaddress/demo/','title'=>'测试地址解析'),
				array('url'=>'jy_kuaidisys/xieyi/','title'=>'寄件协议'),
				array('url'=>'jy_kuaidisys/shuoming/','title'=>'违禁品说明'),
			)),
		))
);
return $menus;
